<?php
 include "connect_flag.php";
 include "functions.php";


      $query="SELECT * FROM badge_id ORDER BY `id` ASC LIMIT 0, 10 ";
//      $query="SELECT * FROM badge_id";
      $result = mysqli_query($con, $query) or die("query:" . mysqli_error($con));
//	  $num = mysqli_num_rows($result);

    
	$i=0;
	$id = mysqli_result($result,$i,"id");
	$name = mysqli_result($result,$i,"name");
	$driver_id = mysqli_result($result,$i,"driver_id");
	$sta = mysqli_result($result,$i,"sta");
	$photo = mysqli_result($result,$i,"photo");
	$indie_con = mysqli_result($result,$i,"indie_con");
	$status = mysqli_result($result,$i,"status");
	$flag = mysqli_result($result,$i,"flag");
	  
 mysqli_close($con);
?>